<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace Blog\Seeder\Admin\Menu;

use Illuminate\Database\Seeder;
use Database\Seeder\MenuSeederMaker;

/**
 * 系统管理菜单创建.
 *
 * Class AdminManagerMenuSeeder
 */
class BlogMenuSeeder extends Seeder
{
    use MenuSeederMaker;

    public function run()
    {
        $order = 3;

        //用户管理菜单项
        $userManager = $this->createMenu('users_manager', 0, $order++, '用户管理', 'fa-users');
        $this->createMenu('users', $userManager->id, $order++, '用户列表', 'fa-user');
        $this->createMenu('user/oauth', $userManager->id, $order++, '第三方授权列表', 'fa-user-md');

        //公告管理菜单项
        $this->createMenu('web/site', 0, $order++, '公告管理', 'fa-bullhorn');

        //文章管理菜单项
        $this->createMenu('articles', 0, $order++, '文章管理', 'fa-book');

        //评论管理菜单项
        $this->createMenu('comment', 0, $order++, '评论管理', 'fa-commenting');

        //每日一句管理菜单项
        $this->createMenu('every/day/content', 0, $order++, '每日一句管理', 'fa-calendar');

        //分类管理菜单项
        $this->createMenu('categories', 0, $order++, '分类管理', 'fa-align-center');

        //标签管理菜单项
        $this->createMenu('tags', 0, $order++, '标签管理', 'fa-tags');

        //友情链接管理菜单项
        $this->createMenu('friend/link', 0, $order++, '友情链接管理', 'fa-external-link');

        //学籍信息管理菜单项
        $this->createMenu('student/info', 0, $order++, '学籍信息管理', 'fa-graduation-cap');

        //小工具管理菜单项
        $tool = $this->createMenu('tool', 0, $order++, '小工具', 'fa-legal');

        //小工具-生日订阅
        $this->createMenu('tool/birthday', $tool->id, $order++, '农/新历生日订阅', 'fa-birthday-cake');
    }
}
